<?php //$Rev:: 34         $ // DO NOT REMOVE

class EVILED extends Parser
{
    public function parse($args, $obj)
    {
        @list($warn, $user) = explode(':', $args, 2);
        //preg_match('/^(.+)\:(.*)$/', $args, $matches);
        $who = (empty($user)) ? 'an anonymous user' : $user;
        $obj->core->aim_debug('You have just been warned (' . $warn . '%) by ' . $who, AIM_RECV);
        // increment our internal counter
        $obj->core->user['evil'] += $warn;
        if ($obj->core->user['defensive'] === true && !empty($user)) {
            $obj->core->utilities->aim_send_im($user, 'Fine, have it your way...', true);
            usleep(1500);
            $obj->core->utilities->aim_warn($user);
        }
    }
}

?>